const expect=require('chai').expect;


describe('match()',()=>{
    it('分组',()=>{
        expect('13012345678').match(/13(\d{9})/);
    });

    it('全局',()=>{
        expect('13012345678').match(/13(\d{9})/g);
    });

    it('大小写',()=>{
        expect('1aBcdE2').match(/1[a-z]+2/i);
    });

});